Part Number Hot Search : 
LTC2754 063EB 2SA16 10040 GSBAW56 CT7030 00211 CQ92M
Product Description
Full Text Search
 

To Download AN392 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  april 2009 doc id 1863 rev 2 1/11 AN392 application note microcontrollers and triac-based dimmers introduction today, electronics is used in home appliances for applications as widely varying as motor regulation in a washing machine, control of a vacuum cleaner, dimming of a lamp or heating in a coffee machine. this evolution has increased pace rapidly because appliances require enhanced features that are easy to build and modify while electronics-based solutions become cheaper and more sophisticated. within this evolution, microcontrollers (mcu ) progressively replace analog controllers and discrete solutions even in low cost applications. mcus are more flexible, often need less components and provide shorter time to market. with an analog ic, the designer is limited to a fixed function frozen inside the device. with a diac control, features like sensor feedback or enhanced motor drive cannot be easily implemented. with an mcu the designer can include his own ideas and test them directly using eprom or one time programmable (otp) versions. the triac is the least expensive power switch to operate directly on the 110/240 v mains. thus it is the optimal switch for most of th e low-cost power applications operating online. the logic level or snubberless triacs can operate with low gate current and can be directly triggered by the mcu. this application note describes two different mcu based applications: a universal motor drive, and a light dimmer. they all operate with the same user interfaces and almost the same software and hardware. www.st.com
universal motor drive AN392 2/11 doc id 1863 rev 2 1 universal motor drive 1.1 power control the power device is a triac because it is the most economical online switch. in a triac- based controller the output power, and, for example, the motor speed, are controlled by the phase delay of the triac drive. this delay is referred to the zero crossing of the line voltage which is detected by means of a connection to the mains neutral ( figure 1 ). changing operation from 60 hz to 50 hz can be achieved by making simple modifications to the mcu eprom/rom table defining the triac conduction angle versus power level. automatic selection of the 50 hz/ 60 hz tables can be implemented. the triac can be directly driven by the mcu. a very short gate current pulse (~ 100 s) could be enough to trigger the triac for rms load currents above 2 a. such pulse control allows the low voltage mcu power supply consumption to be reduced. the snubberless triac is driven in quadrants qii and qiii with a 60 ma gate current provided by three i/o bits of the st6210 in parallel. th is pulse is sufficiently long to ensure the triac is latched at the end of the pulse. pulse length can be m odified if another triac or motor is used. figure 1. mains synchronization 1.2 user interfaces different user interfaces can be implement ed - a touch control, a push button or a potentiometer. the circuit diagram in figure 2 show that the three modes are implemented on the board to let the system designer choose the preferred user interface. control action is obtained when the sensor or the button is touched for more than 330 ms. if the touch duration is between 50 ms and 330 ms, the circuit is switched on or off. a contact of less than 50 ms causes no action.
AN392 universal motor drive doc id 1863 rev 2 3/11 figure 2. motor drive circuit diagram 1.3 circuit components the mcu chosen (st6210) includes an 8 bit accumulator, 2 k rom, 64 bytes ram, an 8 bit a/d converter that can be connected to 8 different inputs, 4 i/o lines with 40 ma sink current capability and a timer. hysteresis protection is included in series with each i/o pin. the st6210 is packaged in dil or smd packages. the ports, the timer and interrupt configurations can be chosen by software, providing high flexibility. the st6210 has been designed to operate in very disturbed environments. each i/o line contains internal diodes which clamp the input voltage between v dd and v ss . these diodes are sized to withstand a continuous current of 1 ma (typ.). the snubberless triac (bta 16-600cw) has been specially designed to drive loads which generate very strong dynamic constraints such as a vacuum cleaner motor. this triac can be triggered in quadrants qi, qii or qiii with gate and latching current of 35 ma and 80 ma respectively. in this application it is driven by three i/o lines of the st6210 in parallel. this triac has high current switching capability ((di/dt)c > 8.5 a/ ms and 5.5 a/ms for bta10600cw), and high static dv/dt ((dv/dt) > 500 v/ms). so, in this circuit, it can operate without any snubber. total consumption of the board is 3 ma with an 8 mhz oscillator. th e board supply comes from the mains through a simple rcd circuit. the +5 v is referred to anode 1 of the triac in order to provide the negative gate current necessary to drive the triac in quadrants qii and qiii. the 5 v supply capacitance is connected as near as possible to the mcu with very short interconnecting traces to maximize rfi immunity. the touch sensor is a voltage divider between line and neutral. it works only if the +5 v supply input of the circuit is connected to t he line. this connection to the mains must be ensured according to local electrical safety rules. 5.6 v 1n4148 100 uf/10 v 22 pf 22 pf bta16-600cw 1m 820-1/2w 4.7 m 4.7 m 4.7 m 47 220 nf/400 v fuse potentiometer version push button 1 2 8 mhz vdd 1 oscout 4 osci n 3 vpp 6 pb1 14 pb0 15 vss 20 nmi 5 pa 1 18 pa 2 17 pa 3 16 pb3 12 reset 7 pb4 11 pb2 13 pa 0 19 st6210 5.6 v 1n4148 - 1m 820-1/2w 47 fuse 1 2 8 mhz vdd 1 oscout 4 osci n 3 vpp 6 pb1 14 pb0 15 vss 20 nmi 5 pa 1 18 pa 2 17 pa 3 16 pb3 12 reset 7 pb4 11 pb2 13 pa 0 19 st6210 gnd gnd gnd gnd gnd gnd gnd optional user interface neutral load line +5 v +5 v +5 v touch sensor 10 nf gnd
universal motor drive AN392 4/11 doc id 1863 rev 2 1.4 software all operating features are contained in a 700 byte program. so more than 1 byte of rom is available for additional features. a look-up table relating delay time to the power requirement contains 64 different levels. the conduction time of the triac can vary from 1.7 ms to 6.7 ms for a 60 hz application and from 2 ms to 8 ms to a 50 hz application. the user can easily adjust the minimum and maximum power levels because the corresponding delay times are slowly changing at the top and bottom of the table. it is recommended that all mcu inputs be filtered so that an input is validated only if it remains constant for 15 s or more so that passive filter components can be saved. the mains supply carries disturbances (glitches, telecommand signals, ...) which could disturb the triac drive. for this reason, a mains voltage zero crossing is only validated if it occurs during a window of time (1.7 ms each 16.6 ms for 60 hz operation and 2 ms each 200 ms for 50 hz operation) selected by the internal timer of the mcu. this block acts as a filter and again eliminates external components ( figure 3 ). this circuit can be used in the following applications: vacuum regulation in a vacuum cleaner speed control in a food processor speed regulation with torque limiting in a drill unbalance detection in a washing machine washing machine door opener with remote control figure 3. major steps of the software line synchronization sensor acquisition power level requirement delay time td1 in timer calculation next delay triac firing delay time td2 in timer calculation next delay read version initialization triac firing window for zero crossing mains reset
AN392 light dimmer doc id 1863 rev 2 5/11 2 light dimmer for a light dimmer application, the board can be plugged in series with the line wire like a mechanical switch. the line syn chronization and th e auxiliary supply are obtained from the voltage across the triac ( figure 4 ). figure 4 shows a schematic which can operate either on 110 v or 240 v mains. it uses an mcu st6210 and a logic level triac. this circuit drives halogen or incandescent lamps supplied directly from the mains or through a low voltage transformer. it includes soft start and protection against transformer saturation and against open load. the user interfaces are the same as previously presented. figure 4. light dimmer circuit diagram 2.1 power control power is controlled by the phase delay (t d ) of the triac drive. in the previous design, t d is referred to the zero crossing of the line voltage. to avoid a connection to the mains neutral as the circuit is in series with the load, the trigger delay is referred to the zero crossing of the current (see figure 1 ). when the triac anode current reaches zero, the mains voltage is reapplied across the triac. synchronization is achieved by measuring this voltage. this voltage is monitored over each half cycle with a network of resistances connected to two i/o lines of the st6210. this allows detection of spurious open load and the retriggering of the triac with multipulse operation if it is not latched after the first gate current pulse. 5.6 v 1n4148 100 uf/10 v 22 pf 22 pf bta08 -600sw 820-1/2w 4.7 m 4.7 m 4.7 m 100 220 nf/400 v fuse potentiometer version push button 1 2 8 mhz vdd 1 oscout 4 osci n 3 vpp 6 pb1 14 pb0 15 vss 20 nmi 5 pa 1 18 pa 2 17 pa 3 16 pb3 12 reset 7 pb4 11 pb2 13 pa 0 19 st6210 5.6 v 1n4148 bta08 -600sw 820-1/2w 100 fuse 1 2 8 mhz vdd 1 oscout 4 osci n 3 vpp 6 pb1 14 pb0 15 vss 20 nmi 5 pa 1 18 pa 2 17 pa 3 16 pb3 12 reset 7 pb4 11 pb2 13 pa 0 19 st6210 gnd gnd gnd gnd gnd gnd gnd optional user interface neutral line +5 v +5 v +5 v touch sensor pb5 100k +5 v 200k 200k gnd 22k t? trans 100k 12 v 10 nf gnd
light dimmer AN392 6/11 doc id 1863 rev 2 2.2 operation with a transformer low power halogen spots use low voltage lamps (12 v typ.) usually supplied through a low voltage transformer. for good application performance, the mcu program should ensure the following: at start-up, the delay time between the first gate pulse and the synchronization instant is greater than 5 ms. this limits transformer coil induction and the risk of saturation with associated high peak current. the circuit starts on a positive line half cycle and stops on a negative one. thus it starts with positive induction and stops after negative induction has been applied. this helps to minimize the size of the magnetic core material, and the current rating of the triac. the timer is precisely tuned in order to obtain 8.3 ms (for 60 hz) or 10 ms (for 50 hz) delay between two gate pulses. as a result, the triac is driven symmetrically in both half cycles so that dc voltage content is avoided across the transformer terminals. saturation risk is then also reduced here. otherwise, the voltage across the triac is monitored to detect a spurious open load condition at the secondary of the transformer. the inrush current at lamp switch-on (halogen or incandescent) is also reduced due to the soft start feature of the circuit ( figure 6 ). 2.3 triac drive the triac is directly driven by the mcu. the pulse driving the triac lasts 50 s. the logic level triac is driven in quadrants qii and qiii with a gate current of 20 ma provided by two i/o lines of the st6210 in parallel. the lo gic level triac has a maximum specified gate triggering current of 10 ma at 25 c. the triac is multi-pulse driven. therefore, in ductive loads can be driven without the use of long pulse drives. as a result, the consumption on the +5 v supply can be reduced and the supply circuit components are downsized. before supplying the first drive pulse, the triac voltage is tested. if no voltage is detected, a spurious open load or a supply disconnection is assumed to have occurred and the circuit is st opped. after the first driving pulse, the triac voltage is monitored. if the triac is not on, another pulse is sent. the same process can be repeated up to four times. th en, if the triac is still not on, the circuit is switched off. 2.4 circuit components the light dimmer board ( figure 4 ) is almost the same as the motor drive board ( figure 2 ). the major differences concern the point where the voltage is measured and the triac choice. when the board is dimming a resistive load, an rfi filter should be added to limit the conducted noise. in a dimmer, because of the resistive load, dynamic constraints are lower than in a motor control, so a logic level triac (bta08-600sw) can be used. it is a sensitive triac (i gt < 10 ma) which can be triggered in quadrants i, ii and iii. this triac has high switching capabilities ((di/dt)c > 2.98 a/ms, (dv/dt)c > 10 v/ms). thus it can also operate without any snubber across it. the mcu board in figure 4 is supplied only when the triac is off. a minimum off-time of the triac (1.7 ms/60 hz and 2 ms/50 hz) is necessary to ensure a good v dd level. the r cd circuit is the same as the one used for the board in figure 2 .
AN392 practical results doc id 1863 rev 2 7/11 2.5 software the software for a light dimmer can be the same as for motor drive. the major difference concerns the mains disturbances rejection in order to prevent lamp flickering. the timing is carried out internally by the mcu timer. the mains period can be calculated internally by the mcu to detect the mains frequency. but this mains frequency must not be disturbed by noise coming from the line, as the mains syn chronization signal is received every cycle. 3 practical results figure 5 presents the current and voltage in a triac driving a universal motor. figure 5. universal motor drive: triac current and voltage triac current i t : 5 a/div 2 ms/div triac voltage v t : 250 v/div i t v t
practical results AN392 8/11 doc id 1863 rev 2 figure 6 presents the soft start operation for an incandescent lamp rated at 150 w, 230 v. thanks to the embedded soft start, the peak in-rush current is about 3 times the nominal current compared with 8 to 10 times otherwise. therefore, the lamp life time is improved. figure 6. soft start for 150 w, 230 v incandescent lamp voltage across triac v t : 100 v/div triac current i t : 1.0 a/dic t 100 ms/div 100 ms/div
AN392 conclusion doc id 1863 rev 2 9/11 4 conclusion microcontroller units (mcu) are in common use in most areas of home appliances. the applications described in this application note show that enhanced appliance circuits can be designed with st6210 mcu and a snubberless or logic level triac. the presented circuits are a universal motor drive, and a light dimmer operating from the 110/240 v mains. the motor drive can be adapted, for instance, to vacuum cleaners, food processors, drills or washing machines. the lig ht dimmer drives incandescent and halogen lamps supplied either directly from the mains or through a low voltage transformer. those circuits include soft start and protection features. different user interfaces can be chosen: touch sensor, push button or potentiometer. such features are obtained with only few components: an st6210 mcu in 20 pin dil/smd package with a logic level or snubberless triac in to-220 package and some passive components. additional features such as motor speed regulation, torque limitation, vacuum or unbalance control, i r presence detection, remote control, alarm, homebus interface can also be implemented.
revision history AN392 10/11 doc id 1863 rev 2 5 revision history table 1. document revision history date revision changes jan-1998 1 initial release. 24-apr-2009 2 reformatted to current st andards. updated for current products.
AN392 doc id 1863 rev 2 11/11 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a parti cular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. unless expressly approved in writing by an authorized st representative, st products are not recommended, authorized or warranted for use in milita ry, air craft, space, life saving, or life sustaining applications, nor in products or systems where failure or malfunction may result in personal injury, death, or severe property or environmental damage. st products which are not specified as "automotive grade" may only be used in automotive applications at user?s own risk. resale of st products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or registered trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2009 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - philippines - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com


▲Up To Search▲   

 
Price & Availability of AN392

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X